﻿using Mes.Domain.BoundedContext.EntityBase;

namespace Mes.Domain.BoundedContext.Entities.Operations
{
    public class OperAttr : NoIdEntityBase
    {
        public OperAttr() { }

        public OperAttr(string processId, string operId, int attrId, string? attrValue, string? notes, DateTime lastEditAt)
        {
            Process_Id = processId;
            Oper_Id = operId;
            Attr_Id = attrId;
            Attr_Value = attrValue;
            Notes = notes;
            Last_Edit_At = lastEditAt;
        }

        public string Process_Id { get; set; } = string.Empty;

        public string Oper_Id { get; set; } = string.Empty;

        public int Attr_Id { get; set; } = 0;

        public string? Attr_Value { get; set; } = null;

        public string? Notes { get; set; } = null;

        public string? Last_Edit_Comment { get; set; } = null;

        public string? Last_Edit_By { get; set; } = null;

        public DateTime Last_Edit_At { get; set; } = DateTime.Now;

        public long Mod_Id { get; set; } = 0;

        public int Row_Id { get; set; } = 0;
    }
}
